package com.yufei.ui.utils;

import java.awt.Component;


import javax.swing.JButton;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;

public class ButtonTableCellRenderer implements TableCellRenderer {
	private JButton button=null;

	public JButton getButton() {
		return button;
	}

	public void setButton(JButton button) {
		this.button = button;
	}

	public ButtonTableCellRenderer(JButton button) {
		super();
		this.button=button;
		// TODO Auto-generated constructor stub
	}

	public Component getTableCellRendererComponent(JTable table, Object value,
			boolean isSelected, boolean hasFocus, int row, int column) {
		// TODO Auto-generated method stub
		return button;
	}

}
